package com.shujia.tour;

import com.shujia.common.kylin.BuildCube;

import java.text.SimpleDateFormat;
import java.util.Date;

public class CityDayCubeBuild {
    public static void main(String[] args) {

        if (args.length == 0) {
            System.out.println("没有时间参数");
            System.exit(0);
        }
        String day_id = args[0];

        if ("%y%m%d".equals(day_id)) {
            SimpleDateFormat f = new SimpleDateFormat("yyyyMMdd");
            day_id = f.format(new Date());
        }

        System.out.println("当前分区时间：" + day_id);


        BuildCube.buileDay("dal_tour_city_day_index", day_id);

    }
}
